home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / U-Z / VideoToolbox 4.95.sit / VideoToolbox / VideoToolboxSources / VLambda.c < prev    next >
MacBinary  |  1994-10-17  |  5.5 KB  |  [TEXT/MMCC]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Mon Oct 17 15:42:11 1994, modified Mon Oct 17 15:42:11 1994, creator 'MMCC', type ASCII, 4939 bytes "VLambda.c" , at 0x13cb 484 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MMCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 56 4c 61 6d 62 64 | 61 2e 63 00 00 00 00 00 |..VLambd|a.c.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 4d 43 | 43 00 00 00 00 00 00 00 |.TEXTMMC|C.......|
|00000050| 00 00 00 00 00 13 4b 00 | 00 01 e4 aa c8 84 13 aa |......K.|........|
|00000060| c8 84 13 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 04 15 00 00 |........|........|
|00000080| 2f 2a 0d 56 4c 61 6d 62 | 64 61 2e 63 0d 0d 56 4c |/*.VLamb|da.c..VL|
|00000090| 61 6d 62 64 61 28 64 6f | 75 62 6c 65 20 6e 6d 29 |ambda(do|uble nm)|
|000000a0| 20 72 65 74 75 72 6e 73 | 20 74 68 65 20 70 68 6f | returns| the pho|
|000000b0| 74 6f 70 69 63 20 73 65 | 6e 73 69 74 69 76 69 74 |topic se|nsitivit|
|000000c0| 79 20 6f 66 20 74 68 65 | 20 73 74 61 6e 64 61 72 |y of the| standar|
|000000d0| 64 0d 43 49 45 20 6f 62 | 73 65 72 76 65 72 2c 20 |d.CIE ob|server, |
|000000e0| 72 65 6c 61 74 69 76 65 | 20 74 6f 20 74 68 65 20 |relative| to the |
|000000f0| 70 65 61 6b 20 61 74 20 | 35 35 35 20 6e 6d 2e 0d |peak at |555 nm..|
|00000100| 0d 56 4c 61 6d 62 64 61 | 50 72 69 6d 65 28 64 6f |.VLambda|Prime(do|
|00000110| 75 62 6c 65 20 6e 6d 29 | 20 72 65 74 75 72 6e 73 |uble nm)| returns|
|00000120| 20 74 68 65 20 73 63 6f | 74 6f 70 69 63 20 73 65 | the sco|topic se|
|00000130| 6e 73 69 74 69 76 69 74 | 79 20 6f 66 20 74 68 65 |nsitivit|y of the|
|00000140| 20 73 74 61 6e 64 61 72 | 64 0d 43 49 45 20 6f 62 | standar|d.CIE ob|
|00000150| 73 65 72 76 65 72 2c 20 | 72 65 6c 61 74 69 76 65 |server, |relative|
|00000160| 20 74 6f 20 74 68 65 20 | 70 65 61 6b 20 61 74 20 | to the |peak at |
|00000170| 35 30 37 20 6e 6d 2e 0d | 0d 42 6f 74 68 20 61 72 |507 nm..|.Both ar|
|00000180| 65 20 62 61 73 65 64 20 | 6f 6e 20 74 68 65 20 57 |e based |on the W|
|00000190| 79 73 7a 65 63 6b 69 20 | 61 6e 64 20 53 74 69 6c |yszecki |and Stil|
|000001a0| 65 73 20 74 61 62 6c 65 | 73 2e 20 49 6e 74 65 72 |es table|s. Inter|
|000001b0| 6d 65 64 69 61 74 65 20 | 76 61 6c 75 65 73 0d 61 |mediate |values.a|
|000001c0| 72 65 20 69 6e 74 65 72 | 70 6f 6c 61 74 65 64 20 |re inter|polated |
|000001d0| 67 65 6f 6d 65 74 72 69 | 63 61 6c 6c 79 2e 20 53 |geometri|cally. S|
|000001e0| 65 6e 73 69 74 69 76 69 | 74 79 20 61 74 20 77 61 |ensitivi|ty at wa|
|000001f0| 76 65 6c 65 6e 67 74 68 | 73 20 6f 75 74 73 69 64 |velength|s outsid|
|00000200| 65 0d 74 68 65 20 72 61 | 6e 67 65 20 63 6f 76 65 |e.the ra|nge cove|
|00000210| 72 65 64 20 62 79 20 74 | 68 65 20 74 61 62 6c 65 |red by t|he table|
|00000220| 73 20 69 73 20 61 73 73 | 75 6d 65 64 20 74 6f 20 |s is ass|umed to |
|00000230| 62 65 20 7a 65 72 6f 2e | 0d 0d 42 61 73 65 64 20 |be zero.|..Based |
|00000240| 6f 6e 20 54 61 62 6c 65 | 73 20 49 28 33 2e 33 2e |on Table|s I(3.3.|
|00000250| 31 29 20 61 6e 64 20 49 | 28 34 2e 33 2e 32 29 20 |1) and I|(4.3.2) |
|00000260| 69 6e 20 47 2e 20 57 79 | 73 7a 65 63 6b 69 20 61 |in G. Wy|szecki a|
|00000270| 6e 64 20 57 2e 53 2e 20 | 53 74 69 6c 65 73 20 28 |nd W.S. |Stiles (|
|00000280| 31 39 38 32 29 20 0d 43 | 6f 6c 6f 72 20 53 63 69 |1982) .C|olor Sci|
|00000290| 65 6e 63 65 2c 20 32 6e | 64 20 45 64 2e 2c 20 57 |ence, 2n|d Ed., W|
|000002a0| 69 6c 65 79 2c 20 4e 65 | 77 20 59 6f 72 6b 2e 0d |iley, Ne|w York..|
|000002b0| 0d 48 49 53 54 4f 52 59 | 3a 0d 31 39 39 30 09 64 |.HISTORY|:.1990.d|
|000002c0| 67 70 20 77 72 6f 74 65 | 20 69 74 2e 0d 31 30 2f |gp wrote| it..10/|
|000002d0| 32 33 2f 39 32 20 64 67 | 70 20 73 70 65 64 20 69 |23/92 dg|p sped i|
|000002e0| 74 20 75 70 20 62 79 20 | 74 61 6b 69 6e 67 20 74 |t up by |taking t|
|000002f0| 68 65 20 6c 6f 67 20 6f | 6e 6c 79 20 6f 6e 63 65 |he log o|nly once|
|00000300| 2c 20 74 68 65 20 66 69 | 72 73 74 20 74 69 6d 65 |, the fi|rst time|
|00000310| 20 69 74 27 73 20 63 61 | 6c 6c 65 64 2e 0d 31 32 | it's ca|lled..12|
|00000320| 2f 31 33 2f 39 32 20 64 | 67 70 20 63 6f 73 6d 65 |/13/92 d|gp cosme|
|00000330| 74 69 63 20 65 64 69 74 | 69 6e 67 20 6f 66 20 74 |tic edit|ing of t|
|00000340| 68 65 20 63 6f 64 65 2e | 0d 2a 2f 0d 23 69 6e 63 |he code.|.*/.#inc|
|00000350| 6c 75 64 65 20 22 56 69 | 64 65 6f 54 6f 6f 6c 62 |lude "Vi|deoToolb|
|00000360| 6f 78 2e 68 22 0d 23 69 | 6e 63 6c 75 64 65 20 3c |ox.h".#i|nclude <|
|00000370| 61 73 73 65 72 74 2e 68 | 3e 0d 23 69 6e 63 6c 75 |assert.h|>.#inclu|
|00000380| 64 65 20 3c 6d 61 74 68 | 2e 68 3e 0d 23 69 6e 63 |de <math|.h>.#inc|
|00000390| 6c 75 64 65 20 22 6d 63 | 36 38 38 38 31 2e 68 22 |lude "mc|68881.h"|
|000003a0| 0d 23 69 66 20 28 54 48 | 49 4e 4b 5f 43 20 7c 7c |.#if (TH|INK_C |||
|000003b0| 20 54 48 49 4e 4b 5f 43 | 50 4c 55 53 29 20 26 26 | THINK_C|PLUS) &&|
|000003c0| 20 6d 63 36 38 38 38 31 | 09 09 2f 2f 20 75 73 65 | mc68881|..// use|
|000003d0| 20 62 75 69 6c 74 2d 69 | 6e 20 66 70 75 20 69 6e | built-i|n fpu in|
|000003e0| 73 74 72 75 63 74 69 6f | 6e 73 20 66 6f 72 20 73 |structio|ns for s|
|000003f0| 70 65 65 64 0d 09 23 64 | 65 66 69 6e 65 20 6c 6f |peed..#d|efine lo|
|00000400| 67 20 5f 6c 6f 67 0d 09 | 23 64 65 66 69 6e 65 20 |g _log..|#define |
|00000410| 65 78 70 20 5f 65 78 70 | 0d 23 65 6e 64 69 66 0d |exp _exp|.#endif.|
|00000420| 0d 64 6f 75 62 6c 65 20 | 56 4c 61 6d 62 64 61 28 |.double |VLambda(|
|00000430| 64 6f 75 62 6c 65 20 6e | 6d 29 0d 7b 0d 09 2f 2a |double n|m).{../*|
|00000440| 20 61 74 20 35 20 6e 6d | 20 69 6e 74 65 72 76 61 | at 5 nm| interva|
|00000450| 6c 73 2c 20 66 72 6f 6d | 20 54 61 62 6c 65 20 49 |ls, from| Table I|
|00000460| 28 33 2e 33 2e 31 29 20 | 70 61 67 65 20 37 32 35 |(3.3.1) |page 725|
|00000470| 2c 0d 09 47 2e 20 57 79 | 73 7a 65 63 6b 69 20 61 |,..G. Wy|szecki a|
|00000480| 6e 64 20 57 2e 53 2e 53 | 74 69 6c 65 73 20 28 31 |nd W.S.S|tiles (1|
|00000490| 39 38 32 29 20 43 6f 6c | 6f 72 20 53 63 69 65 6e |982) Col|or Scien|
|000004a0| 63 65 2c 0d 09 32 6e 64 | 20 45 64 2e 2c 20 57 69 |ce,..2nd| Ed., Wi|
|000004b0| 6c 65 79 2c 20 4e 65 77 | 20 59 6f 72 6b 2e 20 0d |ley, New| York. .|
|000004c0| 09 2a 2f 0d 09 73 74 61 | 74 69 63 20 64 6f 75 62 |.*/..sta|tic doub|
|000004d0| 6c 65 20 56 5b 5d 3d 7b | 20 0d 09 09 30 2e 30 30 |le V[]={| ...0.00|
|000004e0| 30 30 30 33 39 31 37 30 | 30 2c 20 30 2e 30 30 30 |00039170|0, 0.000|
|000004f0| 30 30 36 39 36 35 30 30 | 2c 20 30 2e 30 30 30 30 |00696500|, 0.0000|
|00000500| 31 32 33 39 30 30 30 2c | 20 30 2e 30 30 30 30 32 |1239000,| 0.00002|
|00000510| 32 30 32 30 30 30 2c 20 | 0d 09 09 30 2e 30 30 30 |202000, |...0.000|
|00000520| 30 33 39 30 30 30 30 30 | 2c 20 30 2e 30 30 30 30 |03900000|, 0.0000|
|00000530| 36 34 30 30 30 30 30 2c | 20 30 2e 30 30 30 31 32 |6400000,| 0.00012|
|00000540| 30 30 30 30 30 30 2c 20 | 30 2e 30 30 30 32 31 37 |000000, |0.000217|
|00000550| 30 30 30 30 30 2c 20 0d | 09 09 30 2e 30 30 30 33 |00000, .|..0.0003|
|00000560| 39 36 30 30 30 30 30 2c | 20 30 2e 30 30 30 36 34 |9600000,| 0.00064|
|00000570| 30 30 30 30 30 30 2c 20 | 30 2e 30 30 31 32 31 30 |000000, |0.001210|
|00000580| 30 30 30 30 30 2c 20 30 | 2e 30 30 32 31 38 30 30 |00000, 0|.0021800|
|00000590| 30 30 30 30 2c 20 0d 09 | 09 30 2e 30 30 34 30 30 |0000, ..|.0.00400|
|000005a0| 30 30 30 30 30 30 2c 20 | 30 2e 30 30 37 33 30 30 |000000, |0.007300|
|000005b0| 30 30 30 30 30 2c 20 30 | 2e 30 31 31 36 30 30 30 |00000, 0|.0116000|
|000005c0| 30 30 30 30 2c 20 30 2e | 30 31 36 38 34 30 30 30 |0000, 0.|01684000|
|000005d0| 30 30 30 2c 20 0d 09 09 | 30 2e 30 32 33 30 30 30 |000, ...|0.023000|
|000005e0| 30 30 30 30 30 2c 20 30 | 2e 30 32 39 38 30 30 30 |00000, 0|.0298000|
|000005f0| 30 30 30 30 2c 20 30 2e | 30 33 38 30 30 30 30 30 |0000, 0.|03800000|
|00000600| 30 30 30 2c 20 30 2e 30 | 34 38 30 30 30 30 30 30 |000, 0.0|48000000|
|00000610| 30 30 2c 20 0d 09 09 30 | 2e 30 36 30 30 30 30 30 |00, ...0|.0600000|
|00000620| 30 30 30 30 2c 20 30 2e | 30 37 33 39 30 30 30 30 |0000, 0.|07390000|
|00000630| 30 30 30 2c 20 30 2e 30 | 39 30 39 38 30 30 30 30 |000, 0.0|90980000|
|00000640| 30 30 2c 20 30 2e 31 31 | 32 36 30 30 30 30 30 30 |00, 0.11|26000000|
|00000650| 30 2c 20 0d 09 09 30 2e | 31 33 39 30 32 30 30 30 |0, ...0.|13902000|
|00000660| 30 30 30 2c 20 30 2e 31 | 36 39 33 30 30 30 30 30 |000, 0.1|69300000|
|00000670| 30 30 2c 20 30 2e 32 30 | 38 30 32 30 30 30 30 30 |00, 0.20|80200000|
|00000680| 30 2c 20 30 2e 32 35 38 | 36 30 30 30 30 30 30 30 |0, 0.258|60000000|
|00000690| 2c 20 0d 09 09 30 2e 33 | 32 33 30 30 30 30 30 30 |, ...0.3|23000000|
|000006a0| 30 30 2c 20 30 2e 34 30 | 37 33 30 30 30 30 30 30 |00, 0.40|73000000|
|000006b0| 30 2c 20 30 2e 35 30 33 | 30 30 30 30 30 30 30 30 |0, 0.503|00000000|
|000006c0| 2c 20 30 2e 36 30 38 32 | 30 30 30 30 30 30 30 2c |, 0.6082|0000000,|
|000006d0| 20 0d 09 09 30 2e 37 31 | 30 30 30 30 30 30 30 30 | ...0.71|00000000|
|000006e0| 30 2c 20 30 2e 37 39 33 | 32 30 30 30 30 30 30 30 |0, 0.793|20000000|
|000006f0| 2c 20 30 2e 38 36 32 30 | 30 30 30 30 30 30 30 2c |, 0.8620|0000000,|
|00000700| 20 30 2e 39 31 34 38 35 | 30 31 30 30 30 30 2c 20 | 0.91485|010000, |
|00000710| 0d 09 09 30 2e 39 35 34 | 30 30 30 30 30 30 30 30 |...0.954|00000000|
|00000720| 2c 20 30 2e 39 38 30 33 | 30 30 30 30 30 30 30 2c |, 0.9803|0000000,|
|00000730| 20 30 2e 39 39 34 39 35 | 30 31 30 30 30 30 2c 20 | 0.99495|010000, |
|00000740| 31 2e 30 30 30 30 30 30 | 30 30 30 30 30 2c 20 0d |1.000000|00000, .|
|00000750| 09 09 30 2e 39 39 35 30 | 30 30 30 30 30 30 30 2c |..0.9950|0000000,|
|00000760| 20 30 2e 39 37 38 36 30 | 30 30 30 30 30 30 2c 20 | 0.97860|000000, |
|00000770| 30 2e 39 35 32 30 30 30 | 30 30 30 30 30 2c 20 30 |0.952000|00000, 0|
|00000780| 2e 39 31 35 34 30 30 30 | 30 30 30 30 2c 20 0d 09 |.9154000|0000, ..|
|00000790| 09 30 2e 38 37 30 30 30 | 30 30 30 30 30 30 2c 20 |.0.87000|000000, |
|000007a0| 30 2e 38 31 36 33 30 30 | 30 30 30 30 30 2c 20 30 |0.816300|00000, 0|
|000007b0| 2e 37 35 37 30 30 30 30 | 30 30 30 30 2c 20 30 2e |.7570000|0000, 0.|
|000007c0| 36 39 34 39 30 30 30 30 | 30 30 30 2c 20 0d 09 09 |69490000|000, ...|
|000007d0| 30 2e 36 33 31 30 30 30 | 30 30 30 30 30 2c 20 30 |0.631000|00000, 0|
|000007e0| 2e 35 36 36 38 30 30 30 | 30 30 30 30 2c 20 30 2e |.5668000|0000, 0.|
|000007f0| 35 30 33 30 30 30 30 30 | 30 30 30 2c 20 30 2e 34 |50300000|000, 0.4|
|00000800| 34 31 32 30 30 30 30 30 | 30 30 2c 20 0d 09 09 30 |41200000|00, ...0|
|00000810| 2e 33 38 31 30 30 30 30 | 30 30 30 30 2c 20 30 2e |.3810000|0000, 0.|
|00000820| 33 32 31 30 30 30 30 30 | 30 30 30 2c 20 30 2e 32 |32100000|000, 0.2|
|00000830| 36 35 30 30 30 30 30 30 | 30 30 2c 20 30 2e 32 31 |65000000|00, 0.21|
|00000840| 37 30 30 30 30 30 30 30 | 30 2c 20 0d 09 09 30 2e |70000000|0, ...0.|
|00000850| 31 37 35 30 30 30 30 30 | 30 30 30 2c 20 30 2e 31 |17500000|000, 0.1|
|00000860| 33 38 32 30 30 30 30 30 | 30 30 2c 20 30 2e 31 30 |38200000|00, 0.10|
|00000870| 37 30 30 30 30 30 30 30 | 30 2c 20 30 2e 30 38 31 |70000000|0, 0.081|
|00000880| 36 30 30 30 30 30 30 30 | 2c 20 0d 09 09 30 2e 30 |60000000|, ...0.0|
|00000890| 36 31 30 30 30 30 30 30 | 30 30 2c 20 30 2e 30 34 |61000000|00, 0.04|
|000008a0| 34 35 38 30 30 30 30 30 | 30 2c 20 30 2e 30 33 32 |45800000|0, 0.032|
|000008b0| 30 30 30 30 30 30 30 30 | 2c 20 30 2e 30 32 33 32 |00000000|, 0.0232|
|000008c0| 30 30 30 30 30 30 30 2c | 20 0d 09 09 30 2e 30 31 |0000000,| ...0.01|
|000008d0| 37 30 30 30 30 30 30 30 | 30 2c 20 30 2e 30 31 31 |70000000|0, 0.011|
|000008e0| 39 32 30 30 30 30 30 30 | 2c 20 30 2e 30 30 38 32 |92000000|, 0.0082|
|000008f0| 31 30 30 30 30 30 30 2c | 20 30 2e 30 30 35 37 32 |1000000,| 0.00572|
|00000900| 33 30 30 30 30 30 2c 20 | 0d 09 09 30 2e 30 30 34 |300000, |...0.004|
|00000910| 31 30 32 30 30 30 30 30 | 2c 20 30 2e 30 30 32 39 |10200000|, 0.0029|
|00000920| 32 39 30 30 30 30 30 2c | 20 30 2e 30 30 32 30 39 |2900000,| 0.00209|
|00000930| 31 30 30 30 30 30 2c 20 | 30 2e 30 30 31 34 38 34 |100000, |0.001484|
|00000940| 30 30 30 30 30 2c 20 0d | 09 09 30 2e 30 30 31 30 |00000, .|..0.0010|
|00000950| 34 37 30 30 30 30 30 2c | 20 30 2e 30 30 30 37 34 |4700000,| 0.00074|
|00000960| 30 30 30 30 30 30 2c 20 | 30 2e 30 30 30 35 32 30 |000000, |0.000520|
|00000970| 30 30 30 30 30 2c 20 30 | 2e 30 30 30 33 36 31 31 |00000, 0|.0003611|
|00000980| 30 30 30 30 2c 20 0d 09 | 09 30 2e 30 30 30 32 34 |0000, ..|.0.00024|
|00000990| 39 32 30 30 30 30 2c 20 | 30 2e 30 30 30 31 37 31 |920000, |0.000171|
|000009a0| 39 30 30 30 30 2c 20 30 | 2e 30 30 30 31 32 30 30 |90000, 0|.0001200|
|000009b0| 30 30 30 30 2c 20 30 2e | 30 30 30 30 38 34 38 30 |0000, 0.|00008480|
|000009c0| 30 30 30 2c 20 0d 09 09 | 30 2e 30 30 30 30 36 30 |000, ...|0.000060|
|000009d0| 30 30 30 30 30 2c 20 30 | 2e 30 30 30 30 34 32 34 |00000, 0|.0000424|
|000009e0| 30 30 30 30 2c 20 30 2e | 30 30 30 30 33 30 30 30 |0000, 0.|00003000|
|000009f0| 30 30 30 2c 20 30 2e 30 | 30 30 30 32 31 32 30 30 |000, 0.0|00021200|
|00000a00| 30 30 2c 20 0d 09 09 30 | 2e 30 30 30 30 31 34 39 |00, ...0|.0000149|
|00000a10| 39 30 30 30 2c 20 30 2e | 30 30 30 30 31 30 36 30 |9000, 0.|00001060|
|00000a20| 30 30 30 2c 20 30 2e 30 | 30 30 30 30 37 34 36 35 |000, 0.0|00007465|
|00000a30| 37 30 2c 20 30 2e 30 30 | 30 30 30 35 32 35 37 38 |70, 0.00|00052578|
|00000a40| 30 2c 20 0d 09 09 30 2e | 30 30 30 30 30 33 37 30 |0, ...0.|00000370|
|00000a50| 32 39 30 2c 20 30 2e 30 | 30 30 30 30 32 36 30 37 |290, 0.0|00002607|
|00000a60| 38 30 2c 20 30 2e 30 30 | 30 30 30 31 38 33 36 36 |80, 0.00|00018366|
|00000a70| 30 2c 20 30 2e 30 30 30 | 30 30 31 32 39 33 34 30 |0, 0.000|00129340|
|00000a80| 2c 20 0d 09 09 30 2e 30 | 30 30 30 30 30 39 31 30 |, ...0.0|00000910|
|00000a90| 39 33 2c 20 30 2e 30 30 | 30 30 30 30 36 34 31 35 |93, 0.00|00006415|
|00000aa0| 33 2c 20 30 2e 30 30 30 | 30 30 30 34 35 31 38 31 |3, 0.000|00045181|
|00000ab0| 0d 09 7d 3b 0d 09 63 6f | 6e 73 74 20 64 6f 75 62 |..};..co|nst doub|
|00000ac0| 6c 65 20 6e 6d 4d 69 6e | 3d 33 36 30 2e 2c 6e 6d |le nmMin|=360.,nm|
|00000ad0| 4d 61 78 3d 38 33 30 2e | 2c 6e 6d 44 65 6c 74 61 |Max=830.|,nmDelta|
|00000ae0| 3d 35 2e 3b 0d 09 63 6f | 6e 73 74 20 69 6e 74 20 |=5.;..co|nst int |
|00000af0| 69 4d 61 78 3d 73 69 7a | 65 6f 66 28 56 29 2f 73 |iMax=siz|eof(V)/s|
|00000b00| 69 7a 65 6f 66 28 56 5b | 30 5d 29 2d 31 3b 0d 09 |izeof(V[|0])-1;..|
|00000b10| 72 65 67 69 73 74 65 72 | 20 64 6f 75 62 6c 65 20 |register| double |
|00000b20| 61 3b 0d 09 72 65 67 69 | 73 74 65 72 20 69 6e 74 |a;..regi|ster int|
|00000b30| 20 69 3b 0d 09 73 74 61 | 74 69 63 20 66 69 72 73 | i;..sta|tic firs|
|00000b40| 74 54 69 6d 65 3d 31 3b | 0d 09 0d 09 61 73 73 65 |tTime=1;|....asse|
|00000b50| 72 74 28 69 4d 61 78 3d | 3d 28 6e 6d 4d 61 78 2d |rt(iMax=|=(nmMax-|
|00000b60| 6e 6d 4d 69 6e 29 2f 6e | 6d 44 65 6c 74 61 29 3b |nmMin)/n|mDelta);|
|00000b70| 0d 09 69 66 28 66 69 72 | 73 74 54 69 6d 65 29 7b |..if(fir|stTime){|
|00000b80| 0d 09 09 66 6f 72 28 69 | 3d 30 3b 69 3c 3d 69 4d |...for(i|=0;i<=iM|
|00000b90| 61 78 3b 69 2b 2b 29 56 | 5b 69 5d 3d 6c 6f 67 28 |ax;i++)V|[i]=log(|
|00000ba0| 56 5b 69 5d 29 3b 0d 09 | 09 66 69 72 73 74 54 69 |V[i]);..|.firstTi|
|00000bb0| 6d 65 3d 30 3b 0d 09 7d | 0d 09 61 3d 28 6e 6d 2d |me=0;..}|..a=(nm-|
|00000bc0| 6e 6d 4d 69 6e 29 2f 6e | 6d 44 65 6c 74 61 3b 0d |nmMin)/n|mDelta;.|
|00000bd0| 09 69 3d 61 3b 09 2f 2f | 20 69 6e 74 65 67 65 72 |.i=a;.//| integer|
|00000be0| 20 70 61 72 74 0d 09 61 | 2d 3d 69 3b 09 2f 2f 20 | part..a|-=i;.// |
|00000bf0| 66 72 61 63 74 69 6f 6e | 61 6c 20 70 61 72 74 0d |fraction|al part.|
|00000c00| 09 69 66 28 69 3d 3d 69 | 4d 61 78 20 26 26 20 61 |.if(i==i|Max && a|
|00000c10| 3d 3d 30 2e 30 29 72 65 | 74 75 72 6e 20 65 78 70 |==0.0)re|turn exp|
|00000c20| 28 56 5b 69 4d 61 78 5d | 29 3b 0d 09 69 66 28 69 |(V[iMax]|);..if(i|
|00000c30| 3c 30 20 7c 7c 20 69 3e | 3d 69 4d 61 78 29 72 65 |<0 || i>|=iMax)re|
|00000c40| 74 75 72 6e 20 30 2e 30 | 3b 0d 09 72 65 74 75 72 |turn 0.0|;..retur|
|00000c50| 6e 20 65 78 70 28 56 5b | 69 5d 2b 28 56 5b 69 2b |n exp(V[|i]+(V[i+|
|00000c60| 31 5d 2d 56 5b 69 5d 29 | 2a 61 29 3b 09 2f 2f 20 |1]-V[i])|*a);.// |
|00000c70| 67 65 6f 6d 65 74 72 69 | 63 20 69 6e 74 65 72 70 |geometri|c interp|
|00000c80| 6f 6c 61 74 69 6f 6e 0d | 7d 0d 0d 64 6f 75 62 6c |olation.|}..doubl|
|00000c90| 65 20 56 4c 61 6d 62 64 | 61 50 72 69 6d 65 28 64 |e VLambd|aPrime(d|
|00000ca0| 6f 75 62 6c 65 20 6e 6d | 29 0d 7b 0d 09 2f 2a 0d |ouble nm|).{../*.|
|00000cb0| 09 41 74 20 35 20 6e 6d | 20 69 6e 74 65 72 76 61 |.At 5 nm| interva|
|00000cc0| 6c 73 2c 20 66 72 6f 6d | 20 54 61 62 6c 65 20 49 |ls, from| Table I|
|00000cd0| 28 34 2e 33 2e 32 29 20 | 70 61 67 65 20 37 38 39 |(4.3.2) |page 789|
|00000ce0| 2c 0d 09 47 2e 20 57 79 | 73 7a 65 63 6b 69 20 61 |,..G. Wy|szecki a|
|00000cf0| 6e 64 20 57 2e 53 2e 53 | 74 69 6c 65 73 20 28 31 |nd W.S.S|tiles (1|
|00000d00| 39 38 32 29 20 43 6f 6c | 6f 72 20 53 63 69 65 6e |982) Col|or Scien|
|00000d10| 63 65 2c 0d 09 32 6e 64 | 20 45 64 2e 2c 20 57 69 |ce,..2nd| Ed., Wi|
|00000d20| 6c 65 79 2c 20 4e 65 77 | 20 59 6f 72 6b 0d 09 2a |ley, New| York..*|
|00000d30| 2f 0d 09 73 74 61 74 69 | 63 20 64 6f 75 62 6c 65 |/..stati|c double|
|00000d40| 20 56 5b 5d 3d 7b 0d 09 | 09 30 2e 30 30 30 35 38 | V[]={..|.0.00058|
|00000d50| 39 30 30 30 30 2c 20 30 | 2e 30 30 31 31 30 38 30 |90000, 0|.0011080|
|00000d60| 30 30 30 2c 20 30 2e 30 | 30 32 32 30 39 30 30 30 |000, 0.0|02209000|
|00000d70| 30 2c 20 30 2e 30 30 34 | 35 33 30 30 30 30 30 2c |0, 0.004|5300000,|
|00000d80| 20 0d 09 09 30 2e 30 30 | 39 32 39 30 30 30 30 30 | ...0.00|92900000|
|00000d90| 2c 20 30 2e 30 31 38 35 | 32 30 30 30 30 30 2c 20 |, 0.0185|200000, |
|00000da0| 30 2e 30 33 34 38 34 30 | 30 30 30 30 2c 20 30 2e |0.034840|0000, 0.|
|00000db0| 30 36 30 34 30 30 30 30 | 30 30 2c 20 0d 09 09 30 |06040000|00, ...0|
|00000dc0| 2e 30 39 36 36 30 30 30 | 30 30 30 2c 20 30 2e 31 |.0966000|000, 0.1|
|00000dd0| 34 33 36 30 30 30 30 30 | 30 2c 20 30 2e 31 39 39 |43600000|0, 0.199|
|00000de0| 38 30 30 30 30 30 30 2c | 20 30 2e 32 36 32 35 30 |8000000,| 0.26250|
|00000df0| 30 30 30 30 30 2c 20 0d | 09 09 30 2e 33 32 38 31 |00000, .|..0.3281|
|00000e00| 30 30 30 30 30 30 2c 20 | 30 2e 33 39 33 31 30 30 |000000, |0.393100|
|00000e10| 30 30 30 30 2c 20 30 2e | 34 35 35 30 30 30 30 30 |0000, 0.|45500000|
|00000e20| 30 30 2c 20 30 2e 35 31 | 33 30 30 30 30 30 30 30 |00, 0.51|30000000|
|00000e30| 2c 20 0d 09 09 30 2e 35 | 36 37 30 30 30 30 30 30 |, ...0.5|67000000|
|00000e40| 30 2c 20 30 2e 36 32 30 | 30 30 30 30 30 30 30 2c |0, 0.620|0000000,|
|00000e50| 20 30 2e 36 37 36 30 30 | 30 30 30 30 30 2c 20 30 | 0.67600|00000, 0|
|00000e60| 2e 37 33 34 30 30 30 30 | 30 30 30 2c 20 0d 09 09 |.7340000|000, ...|
|00000e70| 30 2e 37 39 33 30 30 30 | 30 30 30 30 2c 20 30 2e |0.793000|0000, 0.|
|00000e80| 38 35 31 30 30 30 30 30 | 30 30 2c 20 30 2e 39 30 |85100000|00, 0.90|
|00000e90| 34 30 30 30 30 30 30 30 | 2c 20 30 2e 39 34 39 30 |40000000|, 0.9490|
|00000ea0| 30 30 30 30 30 30 2c 20 | 0d 09 09 30 2e 39 38 32 |000000, |...0.982|
|00000eb0| 30 30 30 30 30 30 30 2c | 20 30 2e 39 39 38 30 30 |0000000,| 0.99800|
|00000ec0| 30 30 30 30 30 2c 20 30 | 2e 39 39 37 30 30 30 30 |00000, 0|.9970000|
|00000ed0| 30 30 30 2c 20 30 2e 39 | 37 35 30 30 30 30 30 30 |000, 0.9|75000000|
|00000ee0| 30 2c 20 0d 09 09 30 2e | 39 33 35 30 30 30 30 30 |0, ...0.|93500000|
|00000ef0| 30 30 2c 20 30 2e 38 38 | 30 30 30 30 30 30 30 30 |00, 0.88|00000000|
|00000f00| 2c 20 30 2e 38 31 31 30 | 30 30 30 30 30 30 2c 20 |, 0.8110|000000, |
|00000f10| 30 2e 37 33 33 30 30 30 | 30 30 30 30 2c 20 0d 09 |0.733000|0000, ..|
|00000f20| 09 30 2e 36 35 30 30 30 | 30 30 30 30 30 2c 20 30 |.0.65000|00000, 0|
|00000f30| 2e 35 36 34 30 30 30 30 | 30 30 30 2c 20 30 2e 34 |.5640000|000, 0.4|
|00000f40| 38 31 30 30 30 30 30 30 | 30 2c 20 30 2e 34 30 32 |81000000|0, 0.402|
|00000f50| 30 30 30 30 30 30 30 2c | 20 0d 09 09 30 2e 33 32 |0000000,| ...0.32|
|00000f60| 38 38 30 30 30 30 30 30 | 2c 20 30 2e 32 36 33 39 |88000000|, 0.2639|
|00000f70| 30 30 30 30 30 30 2c 20 | 30 2e 32 30 37 36 30 30 |000000, |0.207600|
|00000f80| 30 30 30 30 2c 20 30 2e | 31 36 30 32 30 30 30 30 |0000, 0.|16020000|
|00000f90| 30 30 2c 20 0d 09 09 30 | 2e 31 32 31 32 30 30 30 |00, ...0|.1212000|
|00000fa0| 30 30 30 2c 20 30 2e 30 | 38 39 39 30 30 30 30 30 |000, 0.0|89900000|
|00000fb0| 30 2c 20 30 2e 30 36 35 | 35 30 30 30 30 30 30 2c |0, 0.065|5000000,|
|00000fc0| 20 30 2e 30 34 36 39 30 | 30 30 30 30 30 2c 20 0d | 0.04690|00000, .|
|00000fd0| 09 09 30 2e 30 33 33 31 | 35 30 30 30 30 30 2c 20 |..0.0331|500000, |
|00000fe0| 30 2e 30 32 33 31 32 30 | 30 30 30 30 2c 20 30 2e |0.023120|0000, 0.|
|00000ff0| 30 31 35 39 33 30 30 30 | 30 30 2c 20 30 2e 30 31 |01593000|00, 0.01|
|00001000| 30 38 38 30 30 30 30 30 | 2c 20 0d 09 09 30 2e 30 |08800000|, ...0.0|
|00001010| 30 37 33 37 30 30 30 30 | 30 2c 20 30 2e 30 30 34 |07370000|0, 0.004|
|00001020| 39 37 30 30 30 30 30 2c | 20 30 2e 30 30 33 33 33 |9700000,| 0.00333|
|00001030| 35 30 30 30 30 2c 20 30 | 2e 30 30 32 32 33 35 30 |50000, 0|.0022350|
|00001040| 30 30 30 2c 20 0d 09 09 | 30 2e 30 30 31 34 39 37 |000, ...|0.001497|
|00001050| 30 30 30 30 2c 20 30 2e | 30 30 31 30 30 35 30 30 |0000, 0.|00100500|
|00001060| 30 30 2c 20 30 2e 30 30 | 30 36 37 37 30 30 30 30 |00, 0.00|06770000|
|00001070| 2c 20 30 2e 30 30 30 34 | 35 39 30 30 30 30 2c 20 |, 0.0004|590000, |
|00001080| 0d 09 09 30 2e 30 30 30 | 33 31 32 39 30 30 30 2c |...0.000|3129000,|
|00001090| 20 30 2e 30 30 30 32 31 | 34 36 30 30 30 2c 20 30 | 0.00021|46000, 0|
|000010a0| 2e 30 30 30 31 34 38 30 | 30 30 30 2c 20 30 2e 30 |.0001480|000, 0.0|
|000010b0| 30 30 31 30 32 36 30 30 | 30 2c 20 0d 09 09 30 2e |00102600|0, ...0.|
|000010c0| 30 30 30 30 37 31 35 30 | 30 30 2c 20 30 2e 30 30 |00007150|00, 0.00|
|000010d0| 30 30 35 30 31 30 30 30 | 2c 20 30 2e 30 30 30 30 |00501000|, 0.0000|
|000010e0| 33 35 33 33 30 30 2c 20 | 30 2e 30 30 30 30 32 35 |353300, |0.000025|
|000010f0| 30 31 30 30 2c 20 0d 09 | 09 30 2e 30 30 30 30 31 |0100, ..|.0.00001|
|00001100| 37 38 30 30 30 2c 20 30 | 2e 30 30 30 30 31 32 37 |78000, 0|.0000127|
|00001110| 33 30 30 2c 20 30 2e 30 | 30 30 30 30 39 31 34 30 |300, 0.0|00009140|
|00001120| 30 2c 20 30 2e 30 30 30 | 30 30 36 36 30 30 30 2c |0, 0.000|0066000,|
|00001130| 20 0d 09 09 30 2e 30 30 | 30 30 30 34 37 38 30 30 | ...0.00|00047800|
|00001140| 2c 20 30 2e 30 30 30 30 | 30 33 34 38 32 30 2c 20 |, 0.0000|034820, |
|00001150| 30 2e 30 30 30 30 30 32 | 35 34 36 30 2c 20 30 2e |0.000002|5460, 0.|
|00001160| 30 30 30 30 30 31 38 37 | 30 30 2c 20 0d 09 09 30 |00000187|00, ...0|
|00001170| 2e 30 30 30 30 30 31 33 | 37 39 30 2c 20 30 2e 30 |.0000013|790, 0.0|
|00001180| 30 30 30 30 31 30 32 32 | 30 2c 20 30 2e 30 30 30 |00001022|0, 0.000|
|00001190| 30 30 30 37 36 30 30 2c | 20 30 2e 30 30 30 30 30 |0007600,| 0.00000|
|000011a0| 30 35 36 37 30 2c 20 0d | 09 09 30 2e 30 30 30 30 |05670, .|..0.0000|
|000011b0| 30 30 34 32 35 30 2c 20 | 30 2e 30 30 30 30 30 30 |004250, |0.000000|
|000011c0| 33 31 39 36 2c 20 30 2e | 30 30 30 30 30 30 32 34 |3196, 0.|00000024|
|000011d0| 31 33 2c 20 30 2e 30 30 | 30 30 30 30 31 38 32 39 |13, 0.00|00001829|
|000011e0| 2c 20 0d 09 09 30 2e 30 | 30 30 30 30 30 31 33 39 |, ...0.0|00000139|
|000011f0| 30 0d 09 7d 3b 0d 09 63 | 6f 6e 73 74 20 64 6f 75 |0..};..c|onst dou|
|00001200| 62 6c 65 20 6e 6d 4d 69 | 6e 3d 33 38 30 2e 2c 6e |ble nmMi|n=380.,n|
|00001210| 6d 4d 61 78 3d 37 38 30 | 2e 2c 6e 6d 44 65 6c 74 |mMax=780|.,nmDelt|
|00001220| 61 3d 35 2e 3b 0d 09 63 | 6f 6e 73 74 20 69 6e 74 |a=5.;..c|onst int|
|00001230| 20 69 4d 61 78 3d 73 69 | 7a 65 6f 66 28 56 29 2f | iMax=si|zeof(V)/|
|00001240| 73 69 7a 65 6f 66 28 56 | 5b 30 5d 29 2d 31 3b 0d |sizeof(V|[0])-1;.|
|00001250| 09 72 65 67 69 73 74 65 | 72 20 64 6f 75 62 6c 65 |.registe|r double|
|00001260| 20 61 3b 0d 09 72 65 67 | 69 73 74 65 72 20 69 6e | a;..reg|ister in|
|00001270| 74 20 69 3b 0d 09 73 74 | 61 74 69 63 20 66 69 72 |t i;..st|atic fir|
|00001280| 73 74 54 69 6d 65 3d 31 | 3b 0d 09 0d 09 61 73 73 |stTime=1|;....ass|
|00001290| 65 72 74 28 69 4d 61 78 | 3d 3d 28 6e 6d 4d 61 78 |ert(iMax|==(nmMax|
|000012a0| 2d 6e 6d 4d 69 6e 29 2f | 6e 6d 44 65 6c 74 61 29 |-nmMin)/|nmDelta)|
|000012b0| 3b 0d 09 69 66 28 66 69 | 72 73 74 54 69 6d 65 29 |;..if(fi|rstTime)|
|000012c0| 7b 0d 09 09 66 6f 72 28 | 69 3d 30 3b 69 3c 3d 69 |{...for(|i=0;i<=i|
|000012d0| 4d 61 78 3b 69 2b 2b 29 | 56 5b 69 5d 3d 6c 6f 67 |Max;i++)|V[i]=log|
|000012e0| 28 56 5b 69 5d 29 3b 0d | 09 09 66 69 72 73 74 54 |(V[i]);.|..firstT|
|000012f0| 69 6d 65 3d 30 3b 0d 09 | 7d 0d 09 61 3d 28 6e 6d |ime=0;..|}..a=(nm|
|00001300| 2d 6e 6d 4d 69 6e 29 2f | 6e 6d 44 65 6c 74 61 3b |-nmMin)/|nmDelta;|
|00001310| 0d 09 69 3d 61 3b 09 2f | 2f 20 69 6e 74 65 67 65 |..i=a;./|/ intege|
|00001320| 72 20 70 61 72 74 0d 09 | 61 2d 3d 69 3b 09 2f 2f |r part..|a-=i;.//|
|00001330| 20 66 72 61 63 74 69 6f | 6e 61 6c 20 70 61 72 74 | fractio|nal part|
|00001340| 0d 09 69 66 28 69 3d 3d | 69 4d 61 78 20 26 26 20 |..if(i==|iMax && |
|00001350| 61 3d 3d 30 2e 30 29 72 | 65 74 75 72 6e 20 65 78 |a==0.0)r|eturn ex|
|00001360| 70 28 56 5b 69 4d 61 78 | 5d 29 3b 0d 09 69 66 28 |p(V[iMax|]);..if(|
|00001370| 69 3c 30 20 7c 7c 20 69 | 3e 3d 69 4d 61 78 29 72 |i<0 || i|>=iMax)r|
|00001380| 65 74 75 72 6e 20 30 2e | 30 3b 0d 09 72 65 74 75 |eturn 0.|0;..retu|
|00001390| 72 6e 20 65 78 70 28 56 | 5b 69 5d 2b 28 56 5b 69 |rn exp(V|[i]+(V[i|
|000013a0| 2b 31 5d 2d 56 5b 69 5d | 29 2a 61 29 3b 09 2f 2f |+1]-V[i]|)*a);.//|
|000013b0| 20 67 65 6f 6d 65 74 72 | 69 63 20 69 6e 74 65 72 | geometr|ic inter|
|000013c0| 70 6f 6c 61 74 69 6f 6e | 0d 7d 0d 00 00 00 00 00 |polation|.}......|
|000013d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001400| 00 00 01 00 00 00 01 9a | 00 00 00 9a 00 00 00 4a |........|.......J|
|00001410| 69 73 66 54 57 9f 99 02 | 61 6d 69 73 60 4c 01 f9 |isfTW...|amis`L..|
|00001420| 94 9d 3e 80 01 01 c0 20 | 19 51 13 08 e8 00 05 00 |..>.... |.Q......|
|00001430| 09 56 4c 61 6d 62 64 61 | 2e 63 02 00 00 00 50 61 |.VLambda|.c....Pa|
|00001440| 72 74 53 49 54 21 00 00 | 00 00 00 00 00 00 00 00 |rtSIT!..|........|
|00001450| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|00001460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001470| 00 00 ab bf ee 74 00 00 | 00 00 00 00 01 e4 6e 74 |.....t..|......nt|
|00001480| 60 4c 01 f9 4e 32 01 67 | 20 20 0e 20 14 7a 9f 6d |`L..N2.g| . .z.m|
|00001490| 01 60 0c 60 4c 01 fc 76 | 7a 9f 67 da 9f 80 01 00 |.`.`L..v|z.g.....|
|000014a0| 9a 60 5a 9f 50 01 21 72 | cc 51 01 3d 68 71 02 ff |.`Z.P.!r|.Q.=hq..|
|000014b0| e2 08 ee 69 01 ff e2 51 | 02 31 6e ff e2 71 47 6d |...i...Q|.1n..qGm|
|000014c0| ec 36 12 f6 26 4e ad 01 | 0b 7a 6d 01 60 72 36 20 |.6..&N..|.zm.`r6 |
|000014d0| 20 01 0b 82 99 02 72 73 | 6c 74 52 50 01 25 8a 7a | .....rs|ltRP.%.z|
|000014e0| 01 ff de 68 54 01 67 34 | 60 4c 01 f9 54 60 4c 01 |...hT.g4|`L..T`L.|
|000014f0| fb d0 31 60 4c 01 fa 5c | 5a 01 ff de 60 4c 01 fb |..1`L..\|Z...`L..|
|00001500| 00 00 00 1e 00 50 00 20 | 01 8d 02 3d 00 50 00 20 |.....P. |...=.P. |
|00001510| 01 8d 02 3d 00 00 00 00 | 00 00 00 00 00 00 00 00 |...=....|........|
|00001520| 00 00 00 00 00 28 00 02 | 00 00 03 97 00 00 03 9e |.....(..|........|
|00001530| 07 56 4c 61 6d 62 64 61 | 00 00 0c 01 00 00 0c 0d |.VLambda|........|
|00001540| 0d 56 4c 61 6d 62 64 61 | 50 72 69 6d 65 00 00 00 |.VLambda|Prime...|
|00001550| 00 48 00 09 4d 6f 6e 61 | 63 6f 00 00 00 00 00 00 |.H..Mona|co......|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 00 00 00 00 00 03 00 04 | 00 3c 00 03 01 8c 02 7d |........|.<.....}|
|00001580| 00 3c 00 03 01 8c 02 7d | aa c8 3d da 00 00 03 25 |.<.....}|..=....%|
|00001590| 00 00 03 3d 00 00 00 00 | 00 00 00 00 01 00 00 00 |...=....|........|
|000015a0| 01 9a 00 00 00 9a 00 00 | 00 4a 00 cf ce a4 1a d0 |........|.J......|
|000015b0| 00 00 00 1c 00 4a 00 00 | 4d 50 53 52 00 02 00 0a |.....J..|MPSR....|
|000015c0| 03 f0 ff ff 00 00 00 00 | 00 00 00 00 03 ef ff ff |........|........|
|000015d0| 00 00 00 22 00 00 00 00 | 03 ed ff ff 00 00 00 4e |..."....|.......N|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+